<!--{template common/header}-->

<div class="f_c">
    <!--{if $_G['uid'] && $_GET['op'] == 'username'}-->
    <h3 class="flb">
        <em id="return_$_GET['handlekey']">{$_G['XRLANG']['setting_upt_username']}</em>
        <span>
            <a href="javascript:;" class="flbc" onclick="hideWindow('$_GET['handlekey']')" title="{lang close}">{lang close}</a>
        </span>
    </h3>
    <form id="confirmform" method="post" autocomplete="off" action="plugin.php?id=xinrui_qq&mod=setting&op=username&infloat=yes&confirmsubmit=yes" onsubmit="ajaxpost('confirmform', 'return_$_GET['handlekey']', 'return_$_GET['handlekey']', 'onerror'); return false;">
        <div class="c cl">
            <!--{if !empty($_GET['infloat'])}--><input type="hidden" name="handlekey" value="$_GET['handlekey']" /><!--{/if}-->
            <input type="hidden" name="formhash" value="{FORMHASH}" />
            <div class="rfm mtn" style="width:400px">
                <table>
                    <tr>
                        <th style="width: 9em;">{lang xinrui_qq:setting_upt_username1}</th>
                        <td>{$_G['username']}</td>
                        <td class="tipcol"></td>
                    </tr>
                    <tr>
                        <th><label for="newusername">{lang xinrui_qq:setting_upt_username2}</label></th>
                        <td><input type="text" id="newusername" name="newusername" size="30" class="px p_fre" tabindex="1" /></td>
                        <td class="tipcol"></td>
                    </tr>
                </table>
            </div>
            <div class="rfm mbw bw0" style="width:400px">
                <table width="100%">
                    <tr>
                        <th>&nbsp;</th>
                        <td>
                            <button class="pn pnc" type="submit" name="confirmsubmit" value="true" tabindex="1"><strong>{lang submit}</strong></button>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </form>
    <!--{/if}-->
    <!--{if $_G['uid'] && $_GET['op'] == 'password'}-->
    <h3 class="flb">
        <em id="return_$_GET['handlekey']">{lang xinrui_qq:setting_upt_pwd}</em>
        <span>
            <a href="javascript:;" class="flbc" onclick="hideWindow('$_GET['handlekey']')" title="{lang close}">{lang close}</a>
        </span>
    </h3>
    <form id="confirmform" method="post" autocomplete="off" action="plugin.php?id=xinrui_qq&mod=setting&op=password&infloat=yes&confirmsubmit=yes" onsubmit="ajaxpost('confirmform', 'return_$_GET['handlekey']', 'return_$_GET['handlekey']', 'onerror'); return false;">
        <div class="c cl">
            <!--{if !empty($_GET['infloat'])}--><input type="hidden" name="handlekey" value="$_GET['handlekey']" /><!--{/if}-->
            <input type="hidden" name="formhash" value="{FORMHASH}" />
            <div class="rfm mtn" style="width:400px">
                <table>
                    <tr>
                        <th style="width: 9em;"><label for="newpassword">{lang xinrui_qq:setting_upt_pwd1}</label></th>
                        <td><input type="password" id="newpassword" name="newpassword" size="30" class="px p_fre" tabindex="1" /></td>
                        <td class="tipcol"></td>
                    </tr>
                    <tr>
                        <th><label for="confirmpassword">{lang xinrui_qq:setting_upt_pwd2}</label></th>
                        <td><input type="password" id="confirmpassword" name="confirmpassword" size="30" class="px p_fre" tabindex="2" /></td>
                        <td class="tipcol"></td>
                    </tr>
                </table>
            </div>
            <div class="rfm mbw bw0" style="width:400px">
                <table width="100%">
                    <tr>
                        <th>&nbsp;</th>
                        <td>
                            <button class="pn pnc" type="submit" name="confirmsubmit" value="true" tabindex="3"><strong>{lang submit}</strong></button>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </form>
    <!--{/if}-->

	<!--{if $_G['uid'] && $_GET['op'] == 'bind'}-->
    <h3 class="flb">
        <em id="return_$_GET['handlekey']">{lang xinrui_qq:setting_bind_username}</em>
        <span>
            <a href="javascript:;" class="flbc" onclick="hideWindow('$_GET['handlekey']')" title="{lang close}">{lang close}</a>
        </span>
    </h3>
    <form id="confirmform" method="post" autocomplete="off" action="plugin.php?id=xinrui_qq&mod=setting&op=bind&infloat=yes&confirmsubmit=yes" onsubmit="ajaxpost('confirmform', 'return_$_GET['handlekey']', 'return_$_GET['handlekey']', 'onerror'); return false;">
        <div class="c cl">
            <!--{if !empty($_GET['infloat'])}--><input type="hidden" name="handlekey" value="$_GET['handlekey']" /><!--{/if}-->
            <input type="hidden" name="formhash" value="{FORMHASH}" />
            <div class="rfm mtn" style="width:400px">
                <table>
                    <tr>
                        <th style="width: 9em;"><label for="oldusername">{lang xinrui_qq:setting_bind_oldusername}</label></th>
                        <td><input type="text" id="oldusername" name="oldusername" size="30" class="px p_fre" tabindex="1" /></td>
                        <td class="tipcol"></td>
                    </tr>
                    <tr>
                        <th><label for="oldpassword">{lang xinrui_qq:setting_bind_oldpassword}</label></th>
                        <td><input type="password" id="oldpassword" name="oldpassword" size="30" class="px p_fre" tabindex="2" /></td>
                        <td class="tipcol"></td>
                    </tr>
					<tr>
                        <th><label for="newpassword">{lang xinrui_qq:setting_bind_newpassword}</label></th>
                        <td><input type="password" id="newpassword" name="newpassword" size="30" class="px p_fre" tabindex="2" /></td>
                        <td class="tipcol"></td>
                    </tr>
                </table>
            </div>
            <div class="rfm mbw bw0" style="width:400px">
                <table width="100%">
                    <tr>
                        <th>&nbsp;</th>
                        <td>
                            <button class="pn pnc" type="submit" name="confirmsubmit" value="true" tabindex="3"><strong>{lang submit}</strong></button>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </form>
    <!--{/if}-->
	<!--{if $_G['uid'] && $_GET['op'] == 'unbind'}-->
	<h3 class="flb">
        <em id="return_$_GET['handlekey']">{lang xinrui_qq:setting_unbind_username}</em>
        <span>
            <a href="javascript:;" class="flbc" onclick="hideWindow('$_GET['handlekey']')" title="{lang close}">{lang close}</a>
        </span>
    </h3>
	 <form id="confirmform" method="post" autocomplete="off" action="plugin.php?id=xinrui_qq&mod=setting&op=unbind&infloat=yes&confirmsubmit=yes" onsubmit="ajaxpost('confirmform', 'return_$_GET['handlekey']', 'return_$_GET['handlekey']', 'onerror'); return false;">
        <div class="c cl">
				<!--{if !empty($_GET['infloat'])}--><input type="hidden" name="handlekey" value="$_GET['handlekey']" /><!--{/if}-->
				<input type="hidden" name="formhash" value="{FORMHASH}" />
                {$_G['XRLANG']['qrcode_auth_pwd']}
				<div class="rfm mtn">
					<table>
						<tr>
							<th><label for="passwordconfirm">{lang login_password}:</label></th>
							<td><input type="password" id="passwordconfirm" name="passwordconfirm" size="30" class="px p_fre" tabindex="1" /></td>
							<td class="tipcol"></td>
						</tr>
						<tr>
							<th><label for="passwordconfirm"></label></th>
							<td>
							<!--{if !empty($_G['xr_userinfo']['bind'])}-->
							{lang xinrui_qq:setting_unbind_info1}{$_G['xr_userinfo']['username']}
							<!--{else}-->
							{lang xinrui_qq:setting_unbind_info2}
							<!--{/if}-->
							</td>
							<td class="tipcol"></td>
						</tr>
					</table> 
				</div>
				<div class="rfm mbw bw0">
					<table width="100%">
						<tr>
							<th>&nbsp;</th>
							<td>
								<button class="pn pnc" type="submit" name="confirmsubmit" value="true" tabindex="1"><strong>{lang submit}</strong></button>
							</td>
						</tr>
					</table>
				</div> 
			</div>
    </form>
	<!--{/if}-->
    
    <!--{if $_G['uid'] && $_GET['op'] == 'bindweb'}-->
    
<div class="bm" id="main_message">

	<div id="loggingbox" class="loggingbox"><div class="loging_tit cl"><div class="z avt" style="display:block;"><img src="{$_GET['avatar']}" width="48" height="48"></div><div class="z"><p class="welcome mbn cl" style="clear:both; width:100%; "><strong>Hi</strong>,<strong>{$_GET['nickname']}</strong><span class="xg2">{lang xinrui_qq:we_qqlogin}</span></p><ul class="tb cl z"><li id="connect_tab_1" class="a"><a id="loginlist" href="javascript:;" onclick="connect_switch(1);this.blur();" tabindex="900">{lang xinrui_qq:create_new_user}</a></li><li id="connect_tab_2" class=""><a id="loginlist2" href="javascript:;" onclick="connect_switch(2);this.blur();" tabindex="900">{lang xinrui_qq:exist_user}</a></li></ul></div></div></div>

<p id="returnmessage4" class=""></p>

<form method="post" autocomplete="off" name="register" id="loginform" enctype="multipart/form-data" onsubmit="ajaxpost('loginform', 'return_$_GET['handlekey']', 'return_$_GET['handlekey']', 'onerror'); return false;" action="plugin.php?id=xinrui_qq&mod=setting&op=bindwebnewpost&confirmsubmit=yes" style="display: block;" >
<div id="layer_reg" class="bm_c">
<input name="regsubmit" value="yes" type="hidden">
<input name="formhash" value="{FORMHASH}" type="hidden">
<input name="referer" value="{$_GET['dreferer']}" type="hidden">
<div class="">
<div id="reginfo_a">
<div class="rfm">
<table>
 <tr>
    <th style="width: 9em;"><label for="newusername">{lang xinrui_qq:setting_new_username}</label></th>
    <td><input type="text" id="newusername" name="newusername" size="30" class="px p_fre" tabindex="1" /></td>
    <td class="tipcol"></td>
</tr>

<tr>
    <th><label for="newpassword">{lang xinrui_qq:setting_new_pwd}</label></th>
    <td><input type="password" id="newpassword" name="newpassword" size="30" class="px p_fre" tabindex="1" /></td>
    <td class="tipcol"></td>
</tr>
<tr>
    <th><label for="confirmpassword">{lang xinrui_qq:setting_upt_pwd2}</label></th>
    <td><input type="password" id="confirmpassword" name="confirmpassword" size="30" class="px p_fre" tabindex="2" /></td>
    <td class="tipcol"></td>
</tr>

</table>
</div>


</div>

</div>

</div>

<div id="layer_reginfo_b">
<div class="rfm mbw bw0">
<table width="100%">
<tbody><tr>
<th>&nbsp;</th>
<td>
<span id="reginfo_a_btn">
<em>&nbsp;</em><button class="pn pnc" id="registerformsubmit" type="submit" name="regsubmit" value="true" tabindex="1"><span>{lang xinrui_qq:done}</span></button><button class="pn pnc"  type="button" name="regsubmit1" onclick="location.href='{$_GET['dreferer']}'" tabindex="1"><span>{lang xinrui_qq:done2}</span></button>
</span>
</td>
<td></td>
</tr>
</tbody></table>
</div>
</div>
</form>

<div class="b1lr">
<form id="registerform" method="post" autocomplete="off" action="plugin.php?id=xinrui_qq&mod=setting&op=bindwebpost&infloat=yes&confirmsubmit=yes" onsubmit="ajaxpost('registerform', 'return_$_GET['handlekey']', 'return_$_GET['handlekey']', 'onerror'); return false;" style="display:none;">
<div class="c cl bm_c">
<input name="regsubmit" value="yes" type="hidden">
<input name="formhash" value="{FORMHASH}" type="hidden">
<input name="referer" value="{$_GET['dreferer']}" type="hidden">

<div class="rfm">
<table>
 <tr>
    <th style="width: 10em;"><label for="oldusername">{lang xinrui_qq:setting_bind_oldusername}</label></th>
    <td><input type="text" id="oldusername" name="oldusername" size="30" class="px p_fre" tabindex="1" /></td>
    <td class="tipcol"></td>
</tr>
<tr>
    <th><label for="oldpassword">{lang xinrui_qq:setting_bind_oldpassword}</label></th>
    <td><input type="password" id="oldpassword" name="oldpassword" size="30" class="px p_fre" tabindex="2" /></td>
    <td class="tipcol"></td>
</tr>

</table>
</div>
</div>
<div class="rfm mbw bw0">
<table>
<tbody><tr>
<th>&nbsp;</th>
<td><button class="pn pnc" type="submit" name="loginsubmit" value="true" tabindex="1"><strong>{lang xinrui_qq:binduser}</strong></button></td>
</tr>
</tbody></table>
</div>
</form>
</div>
<style type="text/css">
.loggingbox { width: 760px; margin: 40px auto 0; }
.loging_tit { border-bottom: 1px solid #CCC; _overflow:hidden; }
.ie_all .loging_tit { height:66px;}
.loggingbox .fm_box { border-bottom:0; padding: 20px 0; }
.loggingbox .welcome { font-size:14px; width:100%; line-height:30px;}
.loggingbox .welcome span { font-size:12px; }
.loggingbox .avt img { margin: 0 5px 5px 0; padding:0; border:0; width:60px; height:60px; }
.loggingbox .tb{ border-bottom: 0; margin-top: 0; padding-left: 0px; }
.loggingbox .tb a { background:#F6F6F6; padding:0 20px; }
.loggingbox .tb .a a { background:#FFF; }
</style>
<script type="text/javascript">

function connect_switch(op) {
if(op == 1) {
$('registerform').style.display='none';$('loginform').style.display='block';
$('connect_tab_1').className = 'a';
$('connect_tab_2').className = '';
//$('connect_login_register_tip').style.display = '';
//$('connect_login_bind_tip').style.display = 'none';

} else {
$('registerform').style.display='block';$('loginform').style.display='none';
$('connect_tab_2').className = 'a';
$('connect_tab_1').className = '';
//$('connect_login_register_tip').style.display = 'none';
//$('connect_login_bind_tip').style.display = '';
}
}

</script>
</div>

    <!--{/if}-->
</div>

<script type="text/javascript">
<!--{if $_G['uid']}-->
            function succeedhandle_$_GET['handlekey'](url,msg,values) {
            hideWindow('$_GET['handlekey']');
                    location.href = url;
            }
<!--{/if}-->
</script>
<!--{template common/footer}-->